package com.jerry.springcloudalibaba.service;

import com.jerry.springcloudalibaba.entity.CommonResult;
import com.jerry.springcloudalibaba.entity.Payment;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackService implements PaymentFeignService {

    @Override
    public CommonResult create(Payment payment) {
        return new CommonResult(444, "服务降级返回 === create");
    }

    @Override
    public CommonResult getPaymentById(Long id) {
        return new CommonResult(444, "服务降级返回 === getPaymentById");
    }

    @Override
    public CommonResult getPaymentList() {
        return new CommonResult(444, "服务降级返回 === getPaymentList");
    }

}
